package com.agil.photoalbum.swing.admin;

import java.awt.Dimension;
import javax.swing.JDialog;

/**
 *
 * @author  Hovanessyan
 */
public class EditUserDialog extends JDialog {
    
    /** Creates new dialog EditUserDialog */
    public EditUserDialog() {
        this.setModal(true);
        this.setTitle("Edit User");
        this.setDefaultCloseOperation(HIDE_ON_CLOSE);
        this.setMinimumSize(new Dimension(800, 400));
        initComponents();
    }
    
    private void initComponents() {

        panelInformation = new javax.swing.JPanel();
        panelHeader = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        panelInfo = new javax.swing.JPanel();
        lblFirstName = new javax.swing.JLabel();
        jFieldFirstName = new javax.swing.JTextField();
        lblLastName = new javax.swing.JLabel();
        jFieldLastName = new javax.swing.JTextField();
        lblUsername = new javax.swing.JLabel();
        jFieldUsername = new javax.swing.JTextField();
        lblCity = new javax.swing.JLabel();
        jFieldCity = new javax.swing.JTextField();
        lblSomeProperty = new javax.swing.JLabel(); 
        jFieldSomeProperty = new javax.swing.JTextField();
        panelControls = new javax.swing.JPanel();
        jPanel1 = new javax.swing.JPanel();
        btnSave = new javax.swing.JButton();
        btnDiscard = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        btnAddDirectory = new javax.swing.JButton();

        this.setLayout(new java.awt.GridLayout());

        panelInformation.setLayout(new java.awt.BorderLayout());

        jLabel1.setFont(new java.awt.Font("Tahoma", 0, 18));
        jLabel1.setText("Information about User Pesho");
        jLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        panelHeader.add(jLabel1);

        panelInformation.add(panelHeader, java.awt.BorderLayout.NORTH);

        panelInfo.setBorder(javax.swing.BorderFactory.createTitledBorder("Info"));
        panelInfo.setLayout(new java.awt.GridLayout(5, 2, 10, 25));

        lblFirstName.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblFirstName.setText("FirstName");
        panelInfo.add(lblFirstName);

        jFieldFirstName.setText("Pesho");
        panelInfo.add(jFieldFirstName);

        lblLastName.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblLastName.setText("LastName");
        panelInfo.add(lblLastName);

        jFieldLastName.setText("Pesho");
        panelInfo.add(jFieldLastName);

        lblUsername.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblUsername.setText("Username");
        panelInfo.add(lblUsername);

        jFieldUsername.setText("Pesho");
        panelInfo.add(jFieldUsername);

        lblCity.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblCity.setText("City");
        panelInfo.add(lblCity);

        jFieldCity.setText("Sofia");
        panelInfo.add(jFieldCity);

        lblSomeProperty.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblSomeProperty.setText("Some Property");
        panelInfo.add(lblSomeProperty);

        jFieldSomeProperty.setText("Pesho");
        panelInfo.add(jFieldSomeProperty);

        panelInformation.add(panelInfo, java.awt.BorderLayout.CENTER);

        panelControls.setBorder(javax.swing.BorderFactory.createTitledBorder("edit controls"));
        panelControls.setLayout(new java.awt.BorderLayout());

        btnSave.setText("Save");
        jPanel1.add(btnSave);

        btnDiscard.setText("Discard");
        jPanel1.add(btnDiscard);

        panelControls.add(jPanel1, java.awt.BorderLayout.WEST);

        btnAddDirectory.setText("Add Directory");
        jPanel2.add(btnAddDirectory);

        panelControls.add(jPanel2, java.awt.BorderLayout.EAST);

        panelInformation.add(panelControls, java.awt.BorderLayout.PAGE_END);

        this.add(panelInformation);
        this.pack();
 
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new EditUserDialog().setVisible(true);
            } 
        });
    }
    
    // Variables declaration - do not modify
    private javax.swing.JButton btnAddDirectory;
    private javax.swing.JButton btnDiscard;
    private javax.swing.JButton btnSave;
    private javax.swing.JTextField jFieldCity;
    private javax.swing.JTextField jFieldFirstName;
    private javax.swing.JTextField jFieldLastName;
    private javax.swing.JTextField jFieldSomeProperty; 
    private javax.swing.JTextField jFieldUsername;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JLabel lblCity;
    private javax.swing.JLabel lblFirstName;
    private javax.swing.JLabel lblLastName;
    private javax.swing.JLabel lblSomeProperty;
    private javax.swing.JLabel lblUsername;
    private javax.swing.JPanel panelControls;
    private javax.swing.JPanel panelHeader;
    private javax.swing.JPanel panelInfo;
    private javax.swing.JPanel panelInformation;
    // End of variables declaration
    
}
